﻿#ifndef EVALUATE_H
#define EVALUATE_H

#include <QWidget>
#include <QTime>
#include <QTimer>
#include "evaluationreport.h"
#include "dataFormate.h"
namespace Ui {
class evaluate;
}

class evaluate : public QWidget
{
    Q_OBJECT

public:
    explicit evaluate(QWidget *parent = nullptr);
    ~evaluate();
    void controlValueShow(int value,int direction);
protected:
    virtual void changeEvent(QEvent* event);
signals:
    void timeout();

private slots:
    void on_start_pushButton_clicked();
    void on_reset_pushButton_clicked();
    void slotReceiveData(ST_RealParam);
    void slotDirection();
    void slotTimer();

private:
    Ui::evaluate *ui;
    QTimer *timer;
    float xAngle = 0;
    float yAngle = 0;
    evaluationReport *m_evaluateReport;
    ST_EvaluateData m_st_evaluateData;
    int counter;
    QTimer *testTimer;
    int scope;
    QList<int> leftPointList,rightPointList,upPointList,downPointList;
    QList<bool> LabelflagList;//left,right,up,dowm
    float value;
    ST_EvaluateReport st_evaluatereport;
    ST_PatientMsg st_patientMsg;
    bool evaluateState; //0-未开始 1-在评估
    QList<QPointF> pointList;

};

#endif // EVALUATE_H
